import { IFeidaoAiNodejsComponent } from '@dfeidao/atom-nodejs/interfaces';
import nodejs from '@dfeidao/atom-nodejs/msg/nodejs';
import render from '@dfeidao/atom-nodejs/render/render';
import p001 from './p001';
import p003 from './p003';

export default async function na001(fd: IFeidaoAiNodejsComponent) {
	// 获取下拉框初始化数据
	const res = await nodejs<{ dt1: Array<{}>, dt2: Array<{}> }>(fd.data.actionid, fd.data.sessionid, 'project-assets/zj-000001/s001', {});
	// 将获取的数据渲染到下拉框中
	render(fd.data.node, res.dt1, p001, 'p001');
	render(fd.data.node, res.dt2, p003, 'p003');
}
